/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.floreantpos.model.base;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Shane
 */
public class BaseMember implements Comparable, Serializable {
    
    public static String REF = "Member";
	public static String PROP_LAST_CLOCK_IN_TIME = "lastClockInTime";
	
	
	public static String PROP_AUTO_ID = "autoId";
	public static String PROP_NEW_USER_TYPE = "newUserType";
	public static String PROP_FIRST_NAME = "fname";
	public static String PROP_MEMBER_ID = "memberId";
	public static String PROP_LAST_NAME = "lname";
        public static String PROP_MIDDLE_NAME = "mname";
        public static String PROP_ADDRESS1 = "address1";
        public static String PROP_ADDRESS2 = "address2";
        public static String PROP_CITY = "city";
        public static String PROP_STATE = "state";
        public static String PROP_ZIP_CODE = "zipCode";
        public static String PROP_WEIGHT = "weight";
        public static String PROP_HEIGHT = "height";
        public static String PROP_SEX = "sex";
        public static String PROP_BIRTH_DATE = "birthDate";
        public static String PROP_EMAIL = "email";
        public static String PROP_EYE_COLOR = "eyeColor";
        public static String PROP_HAIR_COLOR = "hairColor";
        public static String PROP_MEMBER_SINCE = "memberSince";
        public static String PROP_NOTES = "notes";
	public static String PROP_CLOCKED_IN = "clockedIn";
        public static String PROP_REFERRING_GROUP = "referringGroup";
        public static String PROP_REC_EXP = "recEXP";
        public static String PROP_DL_EXP = "dlEXP";
        public static String PROP_DL_NUM = "dlNum";
        public static String PROP_PHONE_NUMBER = "phoneNumber";
        
        
	//public static String PROP_CURRENT_SHIFT = "currentShift";
	//public static String PROP_SSN = "ssn";

    public BaseMember () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseMember (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}

        private java.lang.Integer autoId;
        
        java.util.Date modifiedTime;

	private int hashCode = Integer.MIN_VALUE;
        
        private String fname;
        private String lname;
        private String mname;
        private String dlNum;
        private String dlEXP;
        private int memberId;
        private String address1;
        private String address2;
        private String sex;
        private String hairColor;
        private String eyeColor;
        private String city;
        private String state;
        private String zipCode;
        private String weight;
        private String height;
        private java.util.Date birthDate;
        private String email;
        private String referringGroup;
        private java.util.Date memberSince;
        private java.util.Date lastClockInTime;
        private java.util.Date recEXP;
        private String notes;
        private String phoneNumber;
        
        private java.lang.Boolean clockedIn;

	// primary key
	private java.lang.Integer id;

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
        
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getRecEXP() {
        return recEXP;
    }

    public void setRecEXP(Date recEXP) {
        this.recEXP = recEXP;
    }

    public String getAddress1() {
        return address1;
    }

    public void setAddress1(String address1) {
        this.address1 = address1;
    }

    public String getAddress2() {
        return address2;
    }

    public void setAddress2(String address2) {
        this.address2 = address2;
    }

    public String getDlEXP() {
        return dlEXP;
    }

    public void setDlEXP(String dlEXP) {
        this.dlEXP = dlEXP;
    }

    public String getDlNum() {
        return dlNum;
    }

    public void setDlNum(String dlNum) {
        this.dlNum = dlNum;
    }

    public String getEyeColor() {
        return eyeColor;
    }

    public void setEyeColor(String eyeColor) {
        this.eyeColor = eyeColor;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getHairColor() {
        return hairColor;
    }

    public void setHairColor(String hairColor) {
        this.hairColor = hairColor;
    }

    public Date getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    public int getHashCode() {
        return hashCode;
    }

    public void setHashCode(int hashCode) {
        this.hashCode = hashCode;
    }

    public Integer getAutoId() {
        return autoId;
    }

    public void setAutoId(Integer autoId) {
        this.autoId = autoId;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
    
    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public Boolean getClockedIn() {
        return clockedIn;
    }

    public void setClockedIn(Boolean clockedIn) {
        this.clockedIn = clockedIn;
    }

    public Date getLastClockInTime() {
        return lastClockInTime;
    }

    public void setLastClockInTime(Date lastClockInTime) {
        this.lastClockInTime = lastClockInTime;
    }

    public String getLname() {
        return lname;
    }

    public void setLname(String lname) {
        this.lname = lname;
    }

    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

    public Date getMemberSince() {
        return memberSince;
    }

    public void setMemberSince(Date memberSince) {
        this.memberSince = memberSince;
    }

    public String getMname() {
        return mname;
    }

    public void setMname(String mname) {
        this.mname = mname;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getReferringGroup() {
        return referringGroup;
    }

    public void setReferringGroup(String referringGroup) {
        this.referringGroup = referringGroup;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public int compareTo(Object obj) {
        if (obj.hashCode() > hashCode()) return 1;
		else if (obj.hashCode() < hashCode()) return -1;
		else return 0;
    }
    
}
